package org.fude.entity;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotBlank;

public class User {

	private int id;
	@NotBlank(message="用户名不能为空")
	private String uname;
	@NotBlank(message="密码不能为空")
	private String pwd;
	private String tel;
	private String name;
	
	@Min(value = 0)
	@Max(value = 1)
	private int status = 1;
	
	@Min(value = 0)
	@Max(value = 1)
	private int sex;
	private int uorder;
	private int parent;
	private String jnum;
	private String parents;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public int getParent() {
		return parent;
	}
	public void setParent(int parent) {
		this.parent = parent;
	}
	public int getUorder() {
		return uorder;
	}
	public void setUorder(int uorder) {
		this.uorder = uorder;
	}
	public String getJnum() {
		return jnum;
	}
	public void setJnum(String jnum) {
		this.jnum = jnum;
	}
	public String getParents() {
		return parents;
	}
	public void setParents(String parents) {
		this.parents = parents;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", uname=" + uname + ", pwd=" + pwd + ", tel=" + tel + ", name=" + name + ", status="
				+ status + ", sex=" + sex + ", uorder=" + uorder + ", parent=" + parent + ", jnum=" + jnum
				+ ", parents=" + parents + "]";
	}
	
	
	
}
